﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.IoC;

namespace Kooboo.Commerce.Contexts.Promotions
{
    public static class VistorBehavior
    {
        public static IQueryable<IPromotionRule> QueryPromotionRules(this IVistor actor)
        {
            return ContextContainer.Current.Resolve<IPromotionRuleRepository>().PromotionRules;
        }
    }
}
